package com.weiyuwqj.server.mapper;

import com.weiyuwqj.api.model.SysBranchCompany;
import com.weiyuwqj.api.model.SysUser;
import com.weiyuwqj.api.model.vo.GuaranteeSecurityVo;
import com.weiyuwqj.api.model.vo.SalesmanVo;
import com.weiyuwqj.api.model.vo.SysUserVo;
import com.weiyuwqj.api.model.vo.UserVo;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;
@Repository
public interface SysUserMapper extends Mapper<SysUser> {

    SysUser getOneByUsernameAndPassword(Map map);

    //后台列表接口
    List<SysUser> getList(Map map);


    void insertUser(SysUser user);

    //根据用户名查询
    SysUserVo getOneByUsername(String username);

    //后台担保账户列表
    List<GuaranteeSecurityVo> getGuaranteeList(Map param);

    SysUser getUserByMobile(String mobile);

    List<UserVo>  listSalesman(Map<String, Object> map);

    List<SalesmanVo> getSalesmanList(Map map);

    SysBranchCompany getCompanyByUserId(int userId);

}